﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2012/2/6 22:22:49
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Sector7.Restaurant.EntityType
{
    /// <summary>
    /// 员工信息实体
    /// </summary>
    [Serializable()]
    [DataContract]
    public class RS_Employee : S7_Citizen
    {
        #region Inner members
        private int _groupId;
        private bool _isValid;
        private decimal _basicSalary;
        private RS_EmployeeGroup _group;
        #endregion

        #region Accessor
        /// <summary>
        /// 获取或设置员工组编号
        /// </summary>
        [DataMember]
        public int GroupId
        {
            get { return _groupId; }
            set { _groupId = value; }
        }

        /// <summary>
        /// 获取或设置是否有效
        /// </summary>
        [DataMember]
        public bool IsValid
        {
            get { return _isValid; }
            set { _isValid = value; }
        }

        /// <summary>
        /// 获取或设置基本工资
        /// </summary>
        [DataMember]
        public decimal BasicSalary
        {
            get { return _basicSalary; }
            set { _basicSalary = value; }
        }

        /// <summary>
        /// 获取或设置员工组信息
        /// </summary>
        [DataMember]
        public RS_EmployeeGroup Group
        {
            get { return _group; }
            set { _group = value; }
        }
        #endregion
    }
}
